package com.liuhao.ssm.util;

import com.liuhao.ssm.interceptor.XBException;
import org.apache.commons.lang.StringUtils;

/**
 * Created by liuHao on 2017/6/2.
 */
public class Assert {
    public static void isBlank(String str, String message) {
        if (StringUtils.isBlank(str)) {
            throw new XBException(message);
        }
    }

    public static void isNull(Object object, String message) {
        if (object == null) {
            throw new XBException(message);
        }
    }
}
